<?php
namespace app\plugs;

use app\service\Base as ServiceBase;

abstract class Base {
    protected ServiceBase $server;
    protected $info = [
        'name'  => '搜索', //插件名称
        'code'  =>  's',
        'version'  => '1.0.0', //版本号
        'author'  => 'yh', //作者
        'desc'  => '搜索插件', //插件描述
        'status'  => '1', //插件状态 0禁用 1启用
    ];
    public function __construct(ServiceBase $server)
    {
        $this->server = $server;
    }

    
    function getInfo(){
        return $this->info;
    }

    abstract public function run();
}